﻿using System;
using System.Collections;
using System.Collections.Generic;
using Tedu.ARPGDemo.Character;
using UnityEngine;

namespace ARPGDemo.Skill
{
	/// <summary>
    /// 消耗法力
    /// </summary>
	public class CostSPImpact : IImpact {
        public void DoImpact(SkillDeployer deployer)
        {
            var chStatus = deployer.CurrentSkillData.owner.GetComponent<CharacterStatus>();
            chStatus.SP -= deployer.CurrentSkillData.costSP;
        }
	}
}

